package com.why.blog.service;

import com.why.blog.bean.Blog;




import java.util.List;
import java.util.Map;

/**
 * @program: blog
 * @description:
 * @author: @why
 * @create: 2021-01-16 11:59
 **/

public interface BlogService {
    List<Blog> getListBlog();

    Blog getBlogById(Integer id);

    List<Blog> getListBlogByType(Integer typeId);

    int updateBlog(Blog blog);

    int deleteBlogById(Integer id);

    void saveBlog(Blog blog);

    int blogNums();

    List<Blog> getListBlogNoContent();

    Map<String, List<Blog>> getBlogByYear();

    default List<String> getYear() {
        return null;
    }

    List<Blog> getBlogByName(String name);

    void blogViewsAutoIncrement(Integer blogId);
}
